package com.lishe.lishe.lishe.module.excitation.bean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * Created by shino on 2017/11/24.
 * 福利对象
 */

public class WelfareObject implements Serializable {
    @SerializedName("orderNo")
    private String orderNo;//福利订单号
    @SerializedName("receiveFlag")
    private String receiveFlag;//领取状态 0：未领取 1：已领取 2：已使用
    @SerializedName("welfareName")
    private String welfareName;//福利名称
    @SerializedName("welfareType")
    private String welfareType;//福利类型 1：个人关怀 2：年节福利 3：团队激励
    @SerializedName("sendTime")
    private long sendTime;//发放日期
    @SerializedName("receiveTime")
    private long receiveTime;//领取时间
    @SerializedName("welfareForm")
    private String welfareForm;//福利形式 0：积分福利 1：礼包福利
    @SerializedName("imgUrl")
    private String imgUrl;//福利贺卡图片路径
    @SerializedName("empId")
    private String empId;// 福利Id
    @SerializedName("packageName")
    private String packageName;// 礼包名称，当为礼包时该字段有值。积分福利时为空
    @SerializedName("amount")
    private int amount;// 积分金额，当为积分福利时有值，礼包福利为空
    @SerializedName("wishWord")
    private String wishWord;// 祝福语
    @SerializedName("packageImg")
    private String packageImg;// 礼包图片路径
    @SerializedName("distributionType")
    private String distributionType;// 配送方式：0集中配送 1：散配
    @SerializedName("orderStatus")
    private String orderStatus;// 订单状态 0:支付成功 1:员工领取中 2:订单准备中 3:已发货 4:已完成’
    @SerializedName("hrUrl")
    private String hrUrl;// 对HR说H5页面地址
    @SerializedName("cardUrl")
    private String cardUrl;// h5贺卡页面地址，点击回放 嵌入h5页面回放
    @SerializedName("receiverAddr")
    private String receiverAddr;// 收货地址
    @SerializedName("receiver")
    private String receiver;// 收货人
    @SerializedName("receiverPhone")
    private String receiverPhone;// 收货人联系电话
    @SerializedName("comName")
    private String comName;//公司名称
    @SerializedName("comLogoPath")
    private String comLogoPath;//公司logo地址
    @SerializedName("userName")
    private String userName;//福利获取人

    @SerializedName("feedback")
    private String feedback;//领取反馈：-1：未反馈，0：不满意 1：满意

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getReceiveFlag() {
        return receiveFlag;
    }

    public void setReceiveFlag(String receiveFlag) {
        this.receiveFlag = receiveFlag;
    }

    public String getWelfareName() {
        return welfareName;
    }

    public void setWelfareName(String welfareName) {
        this.welfareName = welfareName;
    }

    public String getWelfareType() {
        return welfareType;
    }

    public void setWelfareType(String welfareType) {
        this.welfareType = welfareType;
    }

    public long getSendTime() {
        return sendTime;
    }

    public void setSendTime(long sendTime) {
        this.sendTime = sendTime;
    }

    public String getWelfareForm() {
        return welfareForm;
    }

    public void setWelfareForm(String welfareForm) {
        this.welfareForm = welfareForm;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getEmpId() {
        return empId;
    }

    public void setEmpId(String empId) {
        this.empId = empId;
    }

    public long getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(long receiveTime) {
        this.receiveTime = receiveTime;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public String getWishWord() {
        return wishWord;
    }

    public void setWishWord(String wishWord) {
        this.wishWord = wishWord;
    }

    public String getPackageImg() {
        return packageImg;
    }

    public void setPackageImg(String packageImg) {
        this.packageImg = packageImg;
    }

    public String getDistributionType() {
        return distributionType;
    }

    public void setDistributionType(String distributionType) {
        this.distributionType = distributionType;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getHrUrl() {
        return hrUrl;
    }

    public void setHrUrl(String hrUrl) {
        this.hrUrl = hrUrl;
    }

    public String getCardUrl() {
        return cardUrl;
    }

    public void setCardUrl(String cardUrl) {
        this.cardUrl = cardUrl;
    }

    public String getReceiverAddr() {
        return receiverAddr;
    }

    public void setReceiverAddr(String receiverAddr) {
        this.receiverAddr = receiverAddr;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getReceiverPhone() {
        return receiverPhone;
    }

    public void setReceiverPhone(String receiverPhone) {
        this.receiverPhone = receiverPhone;
    }

    public String getComName() {
        return comName;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }

    public String getComLogoPath() {
        return comLogoPath;
    }

    public void setComLogoPath(String comLogoPath) {
        this.comLogoPath = comLogoPath;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getFeedback() {
        return feedback;
    }

    public void setFeedback(String feedback) {
        this.feedback = feedback;
    }

    public String getReceiveFlagToString() {
        String msg = null;
        if (receiveFlag == null) {
            return msg;
        }
        switch (receiveFlag) {
            case "0":
                msg = "未领取";
                break;
            case "1":
                msg = "已领取";
                break;
            case "2":
                msg = "已使用";
                break;
        }
        return msg;
    }

    public String getWelfareTypeToString() {
        String msg = null;
        switch (welfareType) {
            case "0":
                msg = "个人关怀";
                break;
            case "1":
                msg = "年节福利";
                break;
            case "2":
                msg = "团队激励";
                break;
        }
        return msg;
    }

    public String getWelfareFormToString() {
        String msg = null;
        switch (welfareForm) {
            case "0":
                msg = "积分福利";
                break;
            case "1":
                msg = "礼包福利";
                break;
        }
        return msg;
    }

    public String getDistributionTypeToString() {
        String msg = null;
        switch (distributionType) {
            case "0":
                msg = "集中配送";
                break;
            case "1":
                msg = "配送到指定地址";
                break;
        }
        return msg;
    }

    // 订单状态 0:支付成功 1:员工领取中 2:订单准备中 3:已发货 4:已完成’
    public String getOrderStatusToString() {
        String msg = null;
        if (orderStatus == null) {
            return msg;
        }
        switch (orderStatus) {
            case "0":
                msg = "支付成功";
                break;
            case "1":
                msg = "员工领取中";
                break;
            case "2":
                msg = "订单准备中";
                break;
            case "3":
                msg = "已发货";
            case "4":
                msg = "已完成";
                break;
        }
        return msg;
    }
}
